/**
 * 
 */
package tp.pr5;

import java.util.Vector;

/**
 * @author Mario
 *
 */
public abstract class Observable<T> {
	protected Vector<T> lista;
	/**
	 * Default constructor
	 */
	public Observable(){
		lista = new Vector<T>();
	}
	/**
	 * Adds a new observer to the list
	 * @param ob
	 */
	public void addObserver(T ob){
		this.lista.add(ob);
	}
	/**
	 * Removes the observer given from the list
	 * @param ob
	 */
	public void removeObserver(T ob){
		this.lista.remove(ob);
	}
}

